import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: 文件 File 类方法的练习5，创建目录
 */
public class Demo5 {
    public static void main(String[] args) {
        File file = new File("./aaa");
        //只能创建一级目录
        file.mkdir();
        System.out.println(file.isDirectory());

        File file2 = new File("./aaa/bbb/ccc");
        //创建多级目录
        file2.mkdirs();
        System.out.println(file.isDirectory());
    }
}
